import Vue from 'vue'
import Router from 'uni-simple-router'

Vue.use(Router)
//初始化
const router = new Router({
	encodeURI: false,
	routes: [{
		path: '/pages/topic/topic',
		name: 'topic',
		meta: {
			title: '热点',
		},
	},
	{
		path: '/pages/topic/detail',
		name: 'topicDetail',
		meta: {
			title: '热点详情',
		},
	},
	{
		path: '/pages/evaluate/evaluate',
		name: 'evaluate',
		meta: {
			title: '测评',
		},
	},
	{
		path: '/pages/evaluate/detail',
		name: 'evaluateDetail',
		meta: {
			title: '测评详情',
		},
	},
	{
		path: '/pages/course/detail',
		name: 'courseDetail',
		meta: {
			title: '课程详情',
		},
	},
	{
		path: '/pages/course/courseList',
		name: 'courseList'
	},
	{
		path: '/pages/more/more',
		name: 'more',
		meta: {
			title: '更多',
		},
	},
	{
		path: '/pages/assignment/assignment',
		name: 'assignment'
	},
	{
		path: '/pages/picbook/picbook',
		name: 'picbook'
	},
	{
		path: '/pages/picbookList/picbookList',
		name: 'picbookList'
	},
	{
		path: '/pages/picbookList/detail',
		name: 'picbookListDetail'
	},
	{
		path: '/pages/map/map',
		name: 'map'
	},
	{
		path: '/pages/user/user',
		name: 'user'
	},
	{
		path: '/pages/search/search',
		name: 'search'
	},
	{
		path: '/pages/collectList/collectList',
		name: 'collectList'
	},
	{
		path: '/pages/history/history',
		name: 'history'
	},
	{
		path: '/pages/about/about',
		name: 'about'
	},
	{
		path: '/pages/review/review',
		name: 'review'
	},
	{
		path: '/pages/chc/chc',
		name: 'chc'
	},
	{
		path: '/pages/topic/editor',
		name: 'editorTopic'
	},
	{
		path: '/pages/course/editor',
		name: 'courseTopic'
	},
	{
		path: '/pages/chooseMerchant/chooseMerchant',
		name: 'chooseMerchant'
	},
	{
		path: '/pages/chooseMerchant/addMerchant',
		name: 'addMerchant'
	},
	{
		path: '/pages/chooseMerchant/addExpert',
		name: 'addExpert'
	},
	{
		path: '/pages/about/protocol',
		name: 'protocol'
	},
	{
		path: '/pages/note/note',
		name: 'note',
		meta: {
			title: '发现'
		},
	},
	{
		path: '/pages/note/noteDetail',
		name: 'noteDetail'
	},
	{
		path: '/pages/note/noteUserDetail',
		name: 'noteUserDetail'
	},
	]
});
export default router;
